package com.zzzyh.aopdemo.controller;

import com.zzzyh.aopdemo.annotation.MyAnnotation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class TestController {

    @RequestMapping("/test1")
    public void test1(){
        log.info("test1方法执行");
    }

    @RequestMapping("/test2")
    @MyAnnotation
    public void test2(){
        log.info("test2方法执行");
    }
}
